﻿<%@page import="com.hh.bss.util.StringHelper" %>
<%
  String contractId=request.getParameter("contractId");  
  String type=request.getParameter("type"); 
  
  if (StringHelper.isEmpty(contractId)) contractId="0";
  
%> 

	
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="客户合同">  
    <meta name="description" content="客户合同">  
    <title>客户合同</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>    

</head>  
<body>  
    
      
    
    <div id="dlg_edit" class="easyui-panel" style="width:1000px;height:570px;" >  
            <div id="tab_panel" class="easyui-tabs" style="width:980px;height:560px">  
                         <div title="基本信息" url="/customer/customerContract/info.do?type=UPDATE"  >  
                             <iframe   src="" style="width:99%;height:99%"></iframe>  
                         </div>
                         <div title="合同人员" url="/customer/customerContractStaff/managerPage.do?1=1" >  
                             <iframe   src="" style="width:99%;height:99%"></iframe>
                         </div>
                         <div title="合同附件" url="/customer/customerContractAttachment/managerPage.do?1=1" >  
                             <iframe   src="" style="width:99%;height:99%"></iframe>  
                         </div>
                         <div title="关联公司" url="/customer/customerContractServiceCompany/managerPage.do?1=1" >  
                             <iframe   src="" style="width:99%;height:99%"></iframe>  
                         </div>
                         
            </div>          
            
    </div>
      
    

    <script type="text/javascript">  
        var url;  
        

        var contractId=<%=contractId%>;
        
        
       $('#tab_panel').tabs({
        	    onSelect: function(title,index){
        	    
        	    	var tab=$('#tab_panel').tabs('getTab', index);
        	    
        	    	tab.find('iframe')[0].contentWindow.location.href=tab.attr('url')+"&contractId="+contractId;
        	    	console.log(tab.find('iframe')[0].contentWindow.src);
        	    	
        	    }
        }); 
    </script>  
     
     

     
     
     
</body>  
</html>